package Controller_Command_21.commands;

import Controller_Command_21.Command;
import Controller_Command_21.Furniture.TV;

public class TVCommand implements Command {
    private TV tv = new TV();

    @Override
    public void execute() {
        System.out.println("电视正在打开...");
        tv.turnOn();
    }

    @Override
    public void undo() {
        System.out.println("电视正在关闭...");
        tv.turnOff();
    }
}
